from django.urls import path
from . import views

urlpatterns = [
    path('areas/',views.AreasView.as_view() ),
    # 获取市的信息
    path('areas/<int:pk>/',views.SubAreasView.as_view()),
    # 保存收货地址
    path('addresses/create/',views.CreateAddressView.as_view()),
    # 获取地址
    path('addresses/',views.UserAddressView.as_view()),
    # 获取默认地址
    path('addresses/<int:pk>/default/',views.UserDefaultAddressView.as_view()),
    # 修改密码
    path('password/',views.ChangePasswordView.as_view()),
    # 修改和删除地址
    path('addresses/<int:pk>/',views.ChangeAddressView.as_view()),
    # 修改地址标题
    path('addresses/<int:pk>/title/',views.ChangeAddressTitleView.as_view()),
]
